package com.hzw.saas.api.group.query;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *  同意成员或拒绝成员加入参数
 * </p>
 *
 * @author sonam
 * @since 2021/1/1 13:42
 */
@Data
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class GroupMsgQuery {

    public GroupMsgQuery() { }

    @NotBlank(message = "消息操作id不能为空")
    @ApiModelProperty(value = "消息操作id（后台业务生成的）", required = true)
    private String msgOperationId;

    @NotBlank(message = "申请的用户id不能为空")
    @ApiModelProperty(value = "批准用户id", required = true)
    private String userId;

    @NotBlank(message = "申请的群组id不能为空")
    @ApiModelProperty(value = "加入群组的id", required = true)
    private String groupId;

    @NotNull(message = "操作类型不能为空")
    @ApiModelProperty(value = "类型,1:同意，2：拒绝", required = true)
    private Integer type;

}
